<!--{template common/header}-->
<!--{if $_GET['op'] == 'getcomment'}-->
	<div class="cmt" style="position:relative;">
    	<i class="x-nhot"></i>
		<div id="comment_ol_$feedid" class="xld xlda">
        <!--{if $count > 2}-->
            <div id="feed_com_count_$feedid" class="size-item x-mar-border">
                <a href="javascript:;" {if $_G['uid']}onclick="feedcomment_get($feedid, 0);"{else}onclick="showWindow(this.id, 'home.php?mod=spacecp&ac=feed', 'get', 0);doane(event);"{/if} id="feedcomment_a_op_$value[feedid]" class="feed_small"><img src="{IMGDIR}/ico_commet.png" width="12px" height="12px" alt="Comment" align="absmiddle" /> Xem tất cả <span id="di_com_count_{$_G[gp_key]}">$count</span> {lang comment}</a>
            </div>    
            <div class="li_border_bt"></div>
        <!--{/if}-->
		<!--{loop $list $value}-->
			<!--{template home/space_comment_li}-->
		<!--{/loop}-->
		</div>
		<!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
        <table cellpadding="0" width="100%">
            <tr>
                <td valign="top" width="40px">
                	<div class="avt" style="margin:4px 5px 0 0">
                        <a href="home.php?mod=space&uid=$_G['uid']" class="avt_l" c="1">
                            <!--{avatar($_G['uid'],small)}-->
                        </a>
                    </div>
                </td>
                <td>
                    <form id="feedform_{$feedid}" method="post" action="home.php?mod=spacecp&ac=feed&feedid=$feedid" {if $_G[inajax]}onsubmit="ajaxpost(this.id, 'return_$_G[gp_handlekey]');"{/if}>
                        <span id="face_{$feedid}" title="{lang insert_emoticons}" onclick="showFace(this.id, 'feedmessage_{$feedid}');return false;" class="cur1"><img src="{IMGDIR}/facelist.gif" alt="facelist" class="vm" /></span>
                        <span id="note_{$feedid}"></span>       
                        <textarea name="message" id="feedmessage_{$feedid}" rows="1" class="pts" oninput="resizeTx(this);" onpropertychange="resizeTx(this);" onkeyup="resizeTx(this);" onkeydown="ctrlEnter(event, 'feedbutton_{$feedid}');"  onblur="resizeTx(this); txtTxCommentChk(this.id, 2)" onclick="txtTxCommentChk(this.id, 1)" style="color:#CCC">Viết bình luận...</textarea>
                        <!--{if checkperm('seccode') && ($secqaacheck || $seccodecheck)}-->
                            <!--{block sectpl}--><sec> <span id="sec<hash>" onclick="showMenu(this.id);"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div><!--{/block}-->
                            <div class="mtm mbm sec"><!--{subtemplate common/seccheck}--></div>
                        <!--{/if}-->
                        <input type="hidden" name="commentsubmit" value="true" />
                        <p class="pns" style="display:none"><button type="submit" name="feedbutton" id="feedbutton_{$feedid}" class="pn" value="true"><strong>{lang comment}</strong></button></p>
                        <span id="return_$_G[gp_handlekey]"></span>
                        <input type="hidden" name="referer" value="home.php?mod=space&do=hot&id=$feedid" />
                        <input type="hidden" name="formhash" value="{FORMHASH}" />
                        <input type="hidden" name="quickcomment" value="1" />
                        <!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_G[gp_handlekey]" /><!--{/if}-->
                    </form>
                </td>
            </tr>
        </table>
	</div>
	<script type="text/javascript">
		txtTxCommentChk('feedmessage_{$feedid}', 0);
		function succeedhandle_$_G['gp_handlekey'] (url, message, values) {
			feedcomment_add(values['cid'], $feedid);
			hideWindow('$_G['gp_handlekey']');
			<!--{if checkperm('seccode') && $sechash}-->
				<!--{if $secqaacheck}-->
				updatesecqaa('$sechash');
				<!--{/if}-->
				<!--{if $seccodecheck}-->
				updateseccode('$sechash');
				<!--{/if}-->
			<!--{/if}-->
		}
	</script>

<!--{elseif $_GET['op'] == 'menu'}-->

	<!--{if $feed[uid]==$_G[uid] || $feed[touserid]==$_G[uid]}-->
	<h3 class="flb">
		<em id="return_$_G[gp_handlekey]">{lang delete_feed}</em>
		<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_G[gp_handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
	</h3>
	<form method="post" id="feedform_{$feedid}" name="feedform_{$feedid}" action="home.php?mod=spacecp&ac=feed&op=delete&feedid=$feedid&handlekey=$_G[gp_handlekey]" {if $_G[inajax]}onsubmit="ajaxpost(this.id, 'return_$_G[gp_handlekey]');"{/if}>
		<input type="hidden" name="referer" value="{echo dreferer()}" />
		<input type="hidden" name="feedsubmit" value="true" />
		<input type="hidden" name="formhash" value="{FORMHASH}" />
		<div class="c altw">
			<div class="alert_info">{lang determine_delete_feed}</div>
		</div>
		<p class="o pns">
			<button name="feedsubmitbtn" type="submit" class="pn pnc" value="true"><strong>{lang determine}</strong></button>
			<!--{if checkperm('managefeed')}-->
			<a href="home.php?mod=spacecp&ac=feed&op=edit&feedid=$feedid" class="pn"><strong class="z">{lang edit}</strong></a>
			<!--{/if}-->
		</p>
	</form>
	<!--{else}-->
	<h3 class="flb">
		<em id="return_$_G[gp_handlekey]">{lang shield_feed}</em>
		<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_G[gp_handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
	</h3>
	<form method="post" id="feedform_{$feedid}" name="feedform_{$feedid}" action="home.php?mod=spacecp&ac=feed&op=ignore&icon=$feed[icon]&feedid=$feedid" {if $_G[inajax]}onsubmit="ajaxpost(this.id, 'return_$_G[gp_handlekey]');"{/if}>
		<input type="hidden" name="referer" value="{echo dreferer()}" />
		<input type="hidden" name="feedignoresubmit" value="true" />
		<input type="hidden" name="formhash" value="{FORMHASH}" />
		<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_G[gp_handlekey]" /><!--{/if}-->
		<div class="c altw">
			<p>{lang next_visit_not_view_feed}</p>
			<p class="ptn"><label for="uid1"><input type="radio" name="uid" id="uid1" value="$feed[uid]" checked="checked" />{lang shield_this_friend}</label></p>
			<p class="ptn"><label for="uid0"><input type="radio" name="uid" id="uid0" value="0" />{lang shield_all_friend}</label></p>
		</div>
		<p class="o pns">
			<button name="feedignoresubmitbtn" type="submit" class="pn pnc" value="true"><strong>{lang determine}</strong></button>
			<!--{if checkperm('managefeed')}-->
				<a href="admin.php?action=feed&operation=edit&feedid=$feedid" class="pn"><strong class="z">{lang edit}</strong></a>
			<!--{/if}-->
		</p>
	</form>
	<!--{/if}-->
	<script type="text/javascript">
		function succeedhandle_$_G[gp_handlekey](url, msg, values) {
			var obj = $('feed_'+ values['feedid'] +'_li');
			obj.style.display = "none";
			hideWindow('$_G['gp_handlekey']');
		}
	</script>
<!--{/if}-->

<!--{template common/footer}-->
